/*
 * Vector.cpp
 *
 *  Created on: 18/10/2014
 *      Author: jorge
 */

#include "Vector.h"

Vector::Vector(int dimension) {
	this->dimension = dimension;
}

void Vector::setVectorPorDefault(){
	for(int i = 0; i < this->dimension; i++){
		this->V[i]=1;
	}
}

int Vector::getDimension(){
	return this->dimension;
}

void Vector::setValueAt(int posicion, float value){
	this->V[posicion]= value;
}

float Vector::getValorAt(int posicion){
	return this->V[posicion];
}

void Vector::mostrarResultado(){
	for(int i = 0; i < this->dimension; i++){
		float resultado = this->V[i];
		printf("%f\n",resultado);
	}
}



Vector::~Vector() {
	// TODO Auto-generated destructor stub
}

